package com.madao.im.controller;

import com.madao.im.config.constant.ErrorCode;
import com.madao.im.config.exception.BaseException;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * home
 *
 * @author chengjunchao
 * @version 1.0.0
 * @date 2021/12/6 16:25
 */
@Controller
public class HomeController {


    @RequestMapping("/index")
    public ResponseEntity<Object> index() {
        throw new BaseException(ErrorCode.ERROR_CODE_1001);
    }
}
